fix loading module with empty body

fixes issues raised in https://github.com/oerpub/github-bookeditor/pull/148#issuecomment-33605555