Scala : Incorrect comparison with NULL