Keyboard disappears at the correct moment when transitioning to previous VC
Fixing location updating for iOS 8. Also tested with iOS 7.1 Simulator