Fix crash when app.worker is unset