Fixes NPE in bot check.