BUGFIX fixing NPE when JSONObject is not a String

git-svn-id: http://crux-framework.googlecode.com/svn@4134 a5d2bbaa-053c-11de-b17c-0f1ef23b492c