Fix for incorrectly changing view geometry when keyboard hidden from another view controller