Add a 'respondsToSelector:' check for 'collectionView:heightForHeaderInLayout:'

Since *'collectionView:heightForHeaderInLayout:'* is an optional delegate method, a *'respondsToSelector:'* check should be added within *'layoutAttributesForElementsInRect:'*. Without the check you will receive an unrecognized selector crash.