The commit of af2d11b1d5 missed a case where the value of a suggested module needed to be reset to nullptr. Fixed thus and added a testcase to cover the circumstance.
af2d11b1d5