Update blob.hpp

Correct index checking for blob