Fix NPE in ban lookups