Fixed the behaviour of docker.push module

This pull request fixes the working of the push module. 

Earlier the return didn't end with `}` and instead ended with `}\r\n` so stripping extra whitespace from either ends fixes part of the problem.

Also introduced try except checks to handle errors better. 

Fixes: https://github.com/saltstack/salt/issues/13615