WFLY-3696, allow empty login-module-stack and avoid NullPointerException

https://issues.jboss.org/browse/WFLY-3696