Removing wait loop around initial state check during registration
Removing wait loop around initial state check during registration

Also fixed a bug in which the state parameter was marked as a 'bool'
type, which was breaking execution of the module.

Fixes #6543

thaim/ansible,thaim/ansible