Added missing check to scrollView
Merge pull request #3847 from vishalduggal/scrollviewfix

 Added missing check to scrollView