[coretasks, bot.py] Solve case sensitivity of nick block removal

Also prevent erroneous addition of empty entry, which prevented listing of
blocks in certain circumstances.

Solves one problem from issue #232