nir: fix nir_shader_get_function_for_name for functions without names.
It's legal in SPIRV for functions to not have names, we have to take this into account when calling into strcmp here.
Fixes: 2aa9eb49 ("nir: Add a helper for finding a function by name")