improved error checking when parsing recurrences