Fix nil error in RouteableArtefact#delete

Some artefacts have paths or prefixes set to nil, not []. This was
causing 500 errors when archiving these.  It also prevented them
from being removed from search because this observer fires first.