Conditionally attach the ApiProblem render.error listener

- Attach the render.error listener if a JSON response is detected.
Merge branch 'hotfix/api-problem-10'

Fixes zfcampus/zf-api-problem#10

- Conditionally registers ApiProblem RenderErrorListener if JSON result is detected.