Gutzwiller approach to the Bose-Hubbard model with random local impurities