Stanford: Certs merge bug fix

Stanford-only materiál. DNM to master. @sefk FYI, @gbruhns please confirm fix against CME.

There was a bug in last week's merge that broke the interaction between the LMS and the certificate agent; this patch fixes it. If it is deployed everywhere, it should tidy up all the cert troubles we've seen this week. Note that while this is a patch against -platform, it is a very small one, on an out-of-the-way part of the system, and I would feel okay doing an OOB deploy everywhere.

Current instance installation CME is by hand, not ansible.