fix #455. Comparison operators should ignore null values