fix #970 aria.utils.Date.format can now handle falsy values and empty objects

It now returns `null` in those cases instead of failing with a `TypeError`.

Close #971.