Fixed null type error when calling hideModal on a modal initialized with a height or maxHeight