Move the check for a security manager in Felix.init down one if statement to fix a security exception (FELIX-2589).