Fixed new record / null value comparison

Signed-off-by: Tom Wright <tom@inflatablecookie.com>