When xrdp.ini is read it doesn't honor commented out sessions/modules.
100% reproducible, comment out any [xrdp#] section in xrdp.ini and restart service.
It appears to be a function of how file.c processes lines.
I have attached a patch file with the lines needed to resolve the issue.
I apologize if it requires any editing to merge easily, and would appreciate any advice for improving future patch files.