Fix history_state failing when RequestHandler and parse json extension are enabled