Fix for '#' in xlink:href for gradients.

This shold fix failed ref lookups in gradients.