Fix bug preventing panning in cases where one under view controller is nil.