Check that argv is set before operating on it.