Simplify intra mode edge checks a little (same complexity, less code).