Surveyor: fix compilation issue without debug code

Reported-by: Maxime Deraspe <maxime@deraspe.net>
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>