Travis: Fixed possible null pointer dereference reported by travis