Fixed issue where error occurred when template was set to null for a ContentGroup