Why are you removing the rightsMetadata datastream?  That's referenced down on lines 13 & 14