Unknown is now also considered a change for getOpenIntervals.

Currently it does not work with times wrapping over midnight and unknown states
so it breaks more than fixes but this is necessary.