Possible segfault on an empty episode list mitigated