application_core: fix buggy message routing

Resolves-bug: https://github.com/sebhtml/ray/issues/170
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>