core: fix a regression for registered handle names

The regression was pushed in 310770c366fe34ae72e44913bbfef650dbe8d72a.

Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>