if the specified template was present in the main folder and in a module folder then the default one was taken even if the module folder was set. Fixed
if empty, not if is_null