properly handle so called exception handling using return undef (empty
set scalar is logical equivalent of false)
Merge pull request #202 from stdweird/spma_hotfix_emptygroups

ncm-spma: deal with undef and empty groups