A young adult novel’s hero is allowed to remain gay, after all