[DROOLS-367] avoid NPE when looking for active profiles in maven settings
(cherry picked from commit b77856c2b353fabaacdb8a311c25706d30dac391)