fmt: fix crash for Printf("%.", 3)
Fixes issue 5311

R=golang-dev, bradfitz, iant
CC=golang-dev
https://codereview.appspot.com/8961050