Fixed issue where a non F# file could be processed for a tooltip

This causes invalid cast exceptions upstream because a file is treated as an F# one inadvertently.  This fix also addresses a potential NRE accessing a null active document.