Correctly get ID of a check

Signed-off-by: Michal Čihař <michal@cihar.com>