Fix PHP Errors on invalid account / JSON trouble