Check to make sure we actually have some schedule periods. 

It probably would have been a good idea to include this earlier.

Signed-off-by: Max Fierke <max@maxfierke.com>