Skip route loading when not in HTTP environment

For ZF2 applications loaded via CLI, the "literal" route does not
exists and therefor an exception is thrown. Explicitly check for
the HTTP environment to load the routes.