TypeError message when NULL value is provided with comparison operator