Clear out pending errors on player disposal.

Source selection errors are dispatched asynchronously so that there is an opportunity to override the error message. If the player is disposed during that period, the error timeout wasn't being cleared properly. Fix for #1480.
While I'm not saying this file is shining example of consistency, this would be the only place a var definition (as opposed to just declarations) wasn't on it's own line. :)