core/msg: prevent null pointer dereference (WIP)

- [ ] needs checking for new return value compatibility
- [x] `printf` needs removing
ic, so we agree.