TIMOB-12114-check for headerview and reduce the index

Check for headerView and if one present, reduce the index

https://jira.appcelerator.org/browse/TIMOB-12114