prevent empty mo file generation

related to #1707