MDL-52423 tool_lp: Allow null related objects in exporters
MDL-52423 tool_lp: Allow null related objects in exporters

Note that the related objects MUST always ALL be passed to the
constructor when instantiating objets, even if they are null.

Related objects were introduced to improve performance and their
requirement is one way to ensure that developers don't forget them.

dilawar/moodle