Fix on null comparison

Small fix on polygon null comparison. There was an unhandled exception
if the polygon was null