bug 1021171 - don't return nulllptr in functions returning bool r=bz,waldo