Fixes #1180: Package builder crashes on empty subpackage