Fix bug if day period is missing

Fixes this [issue](https://github.com/hyperoslo/yr/issues/8)