quick fix of broken build due to new overload of hasProperty in nix

and the removal of get PropertyByName.  
This is a quick fix for this but I am not sure of how to solve it properly. Someone more into the wrapping should have a look on what I did.