core/msg: prevent null pointer dereference (WIP)

- [ ] needs checking for new return value compatibility
- [x] `printf` needs removing
Or did you mean to write 'write' instead of read? Then I guess it makes sense..