fix return values in registry mock service

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Merge pull request #7725 from erikh/fix_registry_test

fix return values in registry mock service