Swapped condition on ResponseWriter.WriteSingleStringJSON