Create util.php with is_null_date() function
Factor out null date checks ("0000-00-00" or "")
Revert "Create util.php with is_null_date() function"

This reverts commit 435efc3977e26a289e0cf73ea7e85189f2afafcf.
Merge branch 'master' into flo