Fix a NullPointerException in SecureAction when a SecurityManager is used by keeping pointers on the local stack. (FELIX-766)