Fix issue 4433, make sure status is a int rather than a string

This PR fix https://github.com/ansible/ansible/issues/4433