Rape trial loophole should not be excuse to shame victims, says minister