Fixes #1606. Exception when comparing Time with nil using ===