fix(ngdoc/moduleDocs): throw an error if a module is improperly tagged

Throw a meaningful error if a module is improperly tagged as another entity (e.g. object, function, etc.).