if values is undefined or null use original query function
Merge pull request #7 from itagenten/checkfornull

if values is undefined or null use original query function