Added some safeguards to the delayed_job initializer to close #485