Prevent blank database names

Prevent issue https://github.com/influxdb/influxdb/issues/812 from re-occuring.
I interpret these as not error conditions per-se, hence `err` is nil. Invalid requests by the user sure, but not errors within the code since the bad requests are handled correctly. I am not sure if this is consistent with the rest of the code.