Revision ids weren't being lowercased because I forgot to coerece.
Use get_revision_maybe().