Fixed two causes of null pointer exceptions in ai Bienemaja