Fix go-mode.el to work on empty buffers
Fix go-mode.el to work on empty buffers

Fixes issue 8.

R=agl, agl1, rsc
http://codereview.appspot.com/153056

Committer: Russ Cox <5ad239cb8a44f659eaaee0aa1ea5b94947abe557@golang.org>

mhennings/marcohennings-go,Triskite/willstone-goclone,webfd/go-zh,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,npe9/noahevans-go9,npe9/noahevans-go9,npe9/noahevans-go9,Triskite/willstone-goclone,mhennings/marcohennings-go,rdp/rogerpack2005-golang,Triskite/willstone-goclone,bryanxu/go-zh,d0f/go-zh,scirelli/scirelli-go,d0f/go-zh,npe9/noahevans-go9,bryanxu/go-zh,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,npe9/noahevans-go9,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,Triskite/willstone-goclone,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,rdp/rogerpack2005-golang,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,webfd/go-zh,mhennings/marcohennings-go,d0f/go-zh,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,d0f/go-zh,webfd/go-zh,mhennings/marcohennings-go,bryanxu/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,webfd/go-zh,rflanagan/reginaldflanagan-project1,scirelli/scirelli-go,sanjosh/sanjos100-tipc,rdp/rogerpack2005-golang,scirelli/scirelli-go,scirelli/scirelli-go,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,Triskite/willstone-goclone,sanjosh/sanjos100-tipc,webfd/go-zh,webfd/go-zh,Triskite/willstone-goclone,rdp/rogerpack2005-golang,bryanxu/go-zh,d0f/go-zh,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,mhennings/marcohennings-go,npe9/noahevans-go9,sanjosh/sanjos100-tipc,bryanxu/go-zh,scirelli/scirelli-go,scirelli/scirelli-go,d0f/go-zh,mhennings/marcohennings-go,npe9/noahevans-go9,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,bryanxu/go-zh,sanjosh/sanjos100-tipc,bryanxu/go-zh,npe9/noahevans-go9