Avoid NPE during JNDI lookup