Fix exception when tab completing with no view