Update gravatar.php

preemptive bug fix. I wasn't accounting for a possible null params, and I also skipped the build query bit.