Check for NaN in empty().

Before:
var x = 0/0;
empty(x); // returns false

I think NaN is the only object with a typeof "number" that also returns true for isNaN(). So I added that check.