Fix logic for ReceiveMode user/channel options. Catch NPEs in message event creation in InputThread.