config: fix mistimed sanity check
A null check of param
needs to be done before it is ever dereferenced,
even if you're just setting up a pointer. This is the sort of situation
where the compiler might be mislead into thinking that it is safe to
optimise the sanity check away.