Temporal correlations of sunlight may assist photoprotection in bacterial photosynthesis