date.c: Remove all occurrences of g_return_val_if_fail