Fixed thumbnail cache name being null for size part, e.g. 44-null-imagespace.jpg instead of 44-512-imagespace.jpg.