notify_by_email_html.sh: Add check for json replies from graphite

Some versions of graphite-api might give back json replies instead of html ones
on error, which wasn't detected by the script and the image embedding failed.