Fix for monitoring page for a call on a nil object.
Fixes for xml and json api calls on services and service providers and api tests.