Bug 1031415 - Fix bad exception handling in emulator.wait_for_system_message(), r=jgriffin