Fix hanging else, props @markjaquith