Avoid Undefined index error due to empty criteria of "type = lookup"
Merge pull request #137 from matayoshi/fix_lookup

Avoid Undefined index error due to empty criteria of "type = lookup"