Fix file handling for figure numbering classes

Here you go, Jesse.

Thanks for testing this.

https://issues.liferay.com/browse/LRDOCS-1511