Check params_size for the proper module.

This is a regression introduced in 1f9e0b and c04c61. The consequence is
that the params_size called was the default one. And a size mismatch was
always detected which in turns triggered the deletion of the export preset.
Merge branch 'fix-params-size-check'

* fix-params-size-check:
  Check params_size for the proper module.