Method of controlling a powder sprayer and printing press having a powder sprayer