[fix] Check for registered objects before use This helps guard against cases where the site routes might be called from a client type that doesn't have all services registered. Use case might be the API calling `Route::urlForClient('site', $url)`.
[fix] Check for registered objects before use
This helps guard against cases where the site routes might be called
from a client type that doesn't have all services registered. Use case
might be the API calling `Route::urlForClient('site', $url)`.

Refs: https://mygeohub.org/support/ticket/1393

zooley/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zooley/hubzero-cms,anthonyfuentes/hubzero-cms,anthonyfuentes/hubzero-cms,zooley/hubzero-cms