Remove empty package test and validation

an empty variable is apparently the same thing as undef, which causes
the packages to be selected as usual.