Fix invisible view controller cannot get did rotate message issue