bos: don't dereference a null pointer when printing an error message