Asset Manager middleware: Small fix when the asset doesn't have dependents.