core/msg: prevent null pointer dereference (WIP)

- [ ] needs checking for new return value compatibility
- [x] `printf` needs removing
I meant "read into the variable `target`". :)