spacemanager: fix NPE and corresponding logging

Acked-by: Paul Millar
Target: trunk, 2.6
Require-book: no
Require-notes: no
Patch: http://rb.dcache.org/r/5484/
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>