fix bug with completely untranslated modules

when all items are filtered from the po.items list, no modules would
have been created. This was due to a refactoring (filtered the po.items
list, instead of the dictionary). Added a failing test for this
use-case.