cleanup: use deserializeFromWorkspaceState

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
405880 fixed NPE during sources download in some cases

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>