Added module class param to prevent error

Prevent 'Object configuration must be an array containing a "class" element.' error.
Merge pull request #5676 from bio/patch-1

Added module class param to prevent error