Fixed text state enabled API

Fixed text state enabled API, check for read-only rather than object state
>>> guiexist('Virtual*', 'txtDiskfile')
1
>>> istextstateenabled('Virtual*', 'txtDiskfile')
0
>>> guiexist('*Notepad', 'txt0')
1
>>> istextstateenabled('*Notepad', 'txt0')
1

QA Notes:
Testing Done: VMware Workstation, Notepad
Documentation Notes:
Bug Number:
Reviewed by:
Approved by:
Mailto: