libgimpbase: fixing gimpattributes
If the iterator for sorted attributes is just initialized,
the iterator returns the first element, next otherwise.