Only set space when output_resource or current space exists.