fix incorrect nil test
also ignore empty strings given to etag