am 67ee630f: Fix NPE when custom protocol is unset

* commit '67ee630fb784b4264ccd57f9daaeeccc72f8d06c':
  Fix NPE when custom protocol is unset