(validation) Fix many NullPointerExceptions introduced in e1fc250