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().
Merge pull request #384 from dimadin/patch-1

Validate that connection exists before saving meta