don't try to send graph in email if matplotlib import failed