Initializing fixes.

Fixes an error when you deploy the admin gui in the same web container that geostore, and the geostore instance it's not already available (on web container restart).