Bugfix: fix crash when no resource was loaded, on CSS class generation.