Fix for a crash in view_msg_cb if row_reference was NULL.