Don't decrement userrefs unless the file was actually was unloaded.
Don't decrement userrefs unless the file was actually was unloaded.

Submitted by:	Ustimenko Semen <semen@iclub.nsu.ru>

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase