fix #950, find with falsy values should returns empty array

Fix #950.
Relative test added.
Before the patch, it throws an Error: `TypeError: 'undefined' is not an object`.