This rescues when the module type id is not set in the request.
Merge pull request #253 from alphagov/dont-die-of-empty-modules

This rescues when the module type id is not set in the request.