timob-9448: porting button states fix

porting fix from https://github.com/appcelerator/titanium_mobile/pull/2389

test in JIRA: https://jira.appcelerator.org/browse/TIMOB-9448