fixes #244: javascript error when trying to import a module with no mandatory fields