Returning on HTML rendering error