Add additional checks for error conditions

 * Test errors for invalid custom delimiters
 * Check for correct error when a tag start/end mismatch and a missing
   end tag both occur.
 * Add check in Renderer::setError() than an existing error is not being
   overwritten.