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