Fixed date rendering on graphs; added some exception handling in script and Flask app.
Date and exception handling fixes.