Fix possible nullptr dereferences in toxav/msi.c