Checking if thumbnail exists before setting it.