DiagnosticsEngine::getCustomDiagID isn't const, so don't pass in const engine.

Change-Id: I7e4494b7f1cb62ab27851e34ab4dc6be8e04e1fa
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>