Fix possible crash with outputPrefix when module is not loaded properly [#462]