fix Issue 11136 - ICE on incorrect module declaration