Fixed travis warnings for implicit conversion from NULL to bool