Intercept part input change event.

In some cases (when 'Close editors automatically' is enabled for ex.)
Eclipse can substitute the underlying editor of an already opened part.
Handle this case by resetting the references associated with the part.
Merge pull request #401 from igrekster/part-input-changed

Intercept part input change event.