NPE thrown when undeployAll is called

NPE thrown when undeployAll is called

Signed-off-by: Julien <jlehuraux@chyro.fr>