config_item() to return NULL instead of FALSE for non-existing items

Close #3001
Close #3232
Related: #3244