QC bug fix

Renaming the last thumbnail on the screen with an auto-number text was throwing an 'object null reference' error. Fixed this. Turned out to be due to a missing statement in the JavaScript auto-number function