Changed compile time check to a runtime check, so that the contentInset is only set on iOS7+.