Fix logic that looks for shift builtins.

If a builtin isn't used, it gets filtered out of the module.  Check that a builtin exists before seeing if it matches.