Fix bug on demand offline

Bug fix to allow OnDemand not to crash with offline configuration.


No regression expected.