Fixes #5576 - make sure the params file for discovery plugin is loaded