Import fix

Don't try to import file if we didn't even load a portfolio.