fix tile boundary check on intra prediction