Prevent blank database names

Prevent issue https://github.com/influxdb/influxdb/issues/812 from re-occurring.