Added a null check in LogoutConfigurer.addLogoutHandler() method to ensure that a logout handler is always provided..