[KARAF-2550] Fix NPE in the handler at first sync