Ignore the lack of json_last_error_msg() on PHP pre‐5.5

Use the numeric error output from json_last_error() instead, for PHP >= 5.3.0 <= 5.5.0

Changed as I couldn’t do local phpunit testing with Ubuntu 12.04s shipped `PHP 5.3.10-1ubuntu3.11`. Discuss/test please.