Update JsonApiView.php

Solve the problem describes in issue #7
Merge pull request #8 from woolfg/patch-1

compatible with Slim\View::renderUpdate JsonApiView.php