Fixing event-custom-base YArray.indexOf('subs ~ null'...) case.

After upgrading to YUI 3.10.0 I found that 'subs' in the code could be null and therefore the YArray.indexOf fails in some cases.

This seems logical as the _afters and _subscribers arrays are no longer initialized.