#1748 Fixed incorrect status checking for peer registration