safety: prevent getCurrentURL getting a /install/
Fixes on $db_connect not valid

Prevent fatal error when $db_connect is not a resource.