Methods for detecting contaminants in solutions containing glucose polymers