Improve SSL detection

Some servers return the string "off" when SSL is not enabled; this check fixes the app to load assets correctly in that situation.