Fix for #933 issue

This PR fixes #933, and some minor glitches detailed in the commit messages.
Okay for the changes in ModuleValidator, but I have to integrate load() in the constructor, as $this->moduleDescriptor may not be defined.