mon: Monitor: make sure received command is valid before handling it

Fixes: 7611

Reused an already upstream patch (7e9ece2) and patched ceph.in to disallow using 'tell' in interactive mode -- which is what triggered this in the first place.