[gerrit] Check approvals is available before using it.