Fixed a segfault caused by mLastDevice not being cleared.

Error occurred on processor reinitialization when a the most recently accessed port was accessed on the new execution.