Indexed CAS: Do not try and write empty blobs into the index
When using an SQL backed index CAS with fallback_on_get
enabled it was
possible for a user to formulate a request for a blob that didn't exist that
would ultimately end up trying to write null rows into the index.
Add extra protection against trying to index invalid digests and a test against trying to write invalid blobs into the index.