Hopefully fixed crash in RemotePlayService#sendMessage, minor refactoring.