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