Typescript Check If Element Not Interactable Error