core/msg: prevent null pointer dereference
core/msg: reenable interrupts in msg_snd_int