Fix NOTICE errors from cli cron

Fix PHP NOTICE level errors for cron jobs executed from the command line

Fixes #4