Fix regression with HTML snippet preview. #557