Return an error rather than panicking on invalid cron specs