It's because None is not a repeat_context, it's the absence of a repeat_context.  So be explicit and treat it like that.