nir: Return nir_type_invalid for non-numeric base types

Now that the type gathering function look at instructions that might
have other types, return invalid type instead of crashing.  That
invalid will be properly ignored later.

Fixes: c1275052 "nir: add type information to load uniform/input and store output intrinsics"
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
10 jobs for !985 with r/nir-fix-base-type-conversion in 9 minutes and 53 seconds (queued for 1 second)
detached
Status Job ID Name Coverage
  Containers Build
passed debian #330508

00:00:21

 
  Build+Test
passed meson-clang #330510

00:05:15

passed meson-clover #330514

00:06:58

passed meson-main #330513

00:05:04

passed meson-swr-glvnd #330509

00:04:04

passed meson-vulkan #330515

00:01:23

passed scons-llvm #330517

00:05:54

passed scons-nollvm #330516

00:02:21

passed scons-swr #330511

00:09:32

passed scons-win64 #330512

00:08:57