The commit of af2d11b1 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.