Backport Fix #1123: IR checker should allow Apply/Select on {Null,Nothing}Type.

(cherry picked from commit 4cf00838432942fa4e4f65138c9b1cbe00e88985)