Fixed a potential issue getting the activity context.
Merge pull request #381 from TobiasRoikjer/master

Fixed a potential issue getting the activity context in "Keyboard enter text" action