hal/hal_utils/dispatch_table.c: increase parameter NULL check

Although we check for more things here. That doesn't actually help
us against out-of-bounds exception and will probably cause a
segmentation fault if that occurs.