Focus element if view is cannot be resolved

Not sure how this could happen since it looks like all panels currently
extend View but a focus undefined issue was reported.

Closes atom/atom#2558