fix Issue 11136 - ICE on incorrect module declaration

fix http://d.puremagic.com/issues/show_bug.cgi?id=11136