bugfix: Add exception when relayout candidate type is null