Fix undefined index notice

Add array_key_exists check to fix undefined index notice, which was causing a headers already sent error in class-opengraph-admin.php