[NUI] Add logic to check if GetLastTouchEvent() is null.