Return correct value for viewAttached
Merge pull request #5459 from vishalduggal/listview_hotfix

Return correct value for viewAttached