Merge "Check for null profile in ShouldCompileBasedOnProfile"