Adds some nil checks in lua distinct method.
Merge pull request #182 from Shopify/fix_lua_distinct_with_nils

Fix lua distinct with nils