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`
Merge pull request #16420 from Lacrymology/fix-module-run

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