photo desklet: Fix a warning, clock desklet: move some String class overrides
to js/ui/overrides.js so they can be used in the desklet as well as the
calendar applet.