Added parent view controller validation before performing transition.
Added parent view controller validation before performing transition.

lukasz-warchol/ASViewController,lukasz-warchol/ASViewController