Fix a bug in Index::lookup_constraint

Reviewed By: @paroski

Differential Revision: D1680897