Prevent fatal errors when Messages is disabled. See #1080