messaging4: Add NULL check to irpc_add_name