Added temporary fix/workaround for #2111 when non-nullable generic result returns null and First is used. Should be reviewed later.