Issue #12128: Copy inactive filters
This patch attempts to resolve issue #12128 (closed)
Previously we used gimp_drawable_has_filters ()
to detect if a layer had any filters set.
However, this function only counts active filters, leading to filters with their visibility set to FALSE not being copied.
This patch checks the number of children in the filter stack container instead to get an accurate filter count.