SLING-4101 - accept running outside of an OSGi environment, for example when combined with SlingRemoteExecutionRule. Patch contributed by Rob Ryan, thanks!