frontend: disallow creating modules without any packages
If there is any justified use-case for having modules that contain
no packages in them, we can change the validation.
I am also fixing the `Module.status` so it doesn't traceback for
modules that were already created without any packages.
Fixes: #1302