Fix a bug if no resource is given to HTMLOfENML