Calling setBackgroundDrawingCallback with a nil value will lead to problems

Not sure if this is related.