Fixed broker crash on null opts