Fix Coverity 746812 and 1025905.  Check ctx->player before dereferencing.
Fix a cut&paste error identified by Coverity 746770.

This fixes potential undefined behavior in the channel editor
partial-match code.