Avoid JS error if quote is in the layer title.