Fix segfault when unpacking msgtype option JSON