ncm-spma functions: fix test for an explicitly defined package version

Annoying bug discovered when starting to make real use of these rewritten functions.
what needs to happen when the length is 0?