Check for negative index.