minor fixes to subscribe logic

- added check for undefined i3EventCode
- updated subscribe reply check to match i3 spec