It shouldn't happen - but there is a bug in shade where it can be None but should be [] instead. Work around it. Fixes #24675