Fix go to init function in helm-spacemacs

The function may fail when looking for an init function in
the current buffer.