Fixed bug where onMessage() tried to run without an actual command