introduced exception handling for getMinutes in cron util