[PATCH v2 3/4] venus: hfi: add checks to handle capabilities from firmware