Fixed NullPointerExceptions at lines 187/188 and 205/206 in Core.java

Lines 184-196, 205-211: for loops increment 'i' to the value returned by 'channels_.size()' and 'privMsgs.size()' respectively, which are one bigger than the last elements in the ArrayLists.