background: Fix possible crash when date isn't available

https://bugzilla.gnome.org/show_bug.cgi?id=736475