Revert "[Truffle] Expect moduleFunctionObject to be unset or a boolean."

This reverts commit b2fbe9e22296d856d145d84a37167fac625700b8.