Fix get module name from empty string

I fixed a bug on getting the module name from empty files
I did not know... I just reverted the file