core/msg: prevent null pointer dereference (WIP)

- [ ] needs checking for new return value compatibility
- [x] `printf` needs removing
Why are you writing this?