Update blob.hpp for checking blob indices

Correct the index checking of blob