GetModuleAttribute: if the attribute value is null then it is not attempted to be set (as per javadoc for PropertyHelper#setNewProperty).
The API of GetModuleAttribute is documented.
Minor changes and fixes in the API documentation for GetModulePath.