Added replacement for json_last_error_msg() on PHP<5.5 [ci skip]