Fixed crash on iOS7 related to invalidateLayout method