getCapabilityOrNull

Retrieves capability by the key.