Fix refactor error, return DbNull when it's null.