check for unknown item types in modules too

Change-Id: Ie1d2aad08fc08c597a76dec045da3d6017a0d058
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>