ENH: Added exception for a portfolio access before setup.

Calling portfolio in setup previously resulted in an
uninformative KeyError. It now informs the user that the
portfolio object has not been assigned at the time of access.