Simplify `AbstractResourceOwner::getResponseContent()` method

Now it will always try to parse json, and only in case of failure, try to parse it as string.

Refs #338