fix sample not work in ios earlier 6.0

fix crash on ios earlier 6.0. Before use connection property we should check is it available or not