Fix monkey patching of assert_not_in.