Fixed broken collapse detection on ons-split-view and iOS.