Use importutils.try_import() for MySQLdb

This is a common pattern we've adopted elsewhere, so use it here too.

Change-Id: I2e0947b4857005b478e796e9c9a7c05ea1f0d926