fix compare() : pass null/undef return from get*()