protocols: fix segfault with no protocols loaded