Problem with bluring a light which is behind another object
Finally I could fix the problem by using index pass as factor for mixing the image in the compositiing nodes. I used the original image itself and its blurred version as the inputs for the mixing.