Wrapped all invalidateIntrinsicContentSize in check to avoid crashing on iOS 5
Merge branch 'od/issue_766' into develop