fix the way the date field is rendered to prevent php warning

when checking wether or not a value exists for the date field, check if that it's not `empty()` instead of just checking if `isset()`, thus preventing a PHP warning when the value is set to an empty string.

fixes #48