Fixes getting 'perfect day' buff if there were no active dailies.

Resolved conflicts from #98.
Since in that pull-request 'from' is an 'unknown repository' (probably branch was deleted) I don't know how to include original commits from @Alys.
Tested on local copy - seem to work well.