Class Metadata: Throw a nice error message when the identifier field is not available, instead of letting the user confused with PHP's Undefined index and another fatal PHP error.