Use parameter instead of static access for inner module call

Change-Id: Ied49fd892d6de8bb105816a1759e4a349b98a72a
Reviewed-on: https://gerrit.libreoffice.org/13247
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>