Evidence that the maximum electron energy in hotspots of FR II galaxies is not determined by synchrotron cooling