Fixed login security bug

Aepic showed a security bug at https://github.com/FlareHAX0R/deltaOS-unstable/issues/59
It was caused by the fact that terminate events bypass os.pullEvent filters and so x and y were nil.
Fixed by doing a simple if then check