bridge_channel_write_frame: Check for NULL channel