Validate that connection exists before saving meta

If connection doesn't exist, user will get warnings "Invalid argument supplied for foreach()" in P2P_Box_Factory::save_post() and scbForms::update_meta().