fixed #401 - 500 error when visibleBy is null during signup