[KARAF-2910]Properties login module leak a PropertiesInstaller reference results in OOM
(cherry picked from commit a1b2aac03b675fb18936674cc050135fc683eb09)
add a NPE checker