drop_epochs: Check indices are not out of bounds

re https://github.com/mne-tools/mne-python/issues/941

I added a simple test function (drop_epochs didn't have one), let me know if I did it the right way.