Add check for no time periods being defined, and make sure determineThemeAndScheme always returns a tuple
Merge pull request #5 from eddiejessup/master

Fix Exception when no time periods are defined