Bug/connection to calyx.net fails and app crashes #4550

This unveils a new bug: when there is no anonymous certificate, bitmask crashes.