ref #5801 Fix several NPE when editing/creating concept relations from