adds safeguard to rake task for chron job on heroku