Fix fatal error for empty yields