Make result=False if retcode is not 0 in module.run/wait

This fixes commit 57423e031aeb2d26f82795f36fb09f08b2e17af7 which
introduced this code, but seems to check the wrong part of `ret`
salt-call/ssh, issue #16610:

Fix a regression when modules are called within an SLS