Fixed: When the compiler can't find a protocol in a class declaration it now gives an understandable error.

This fixes #2212
Merge pull request #2213 from mrcarlberg/error_cannot_find_protocol_declaration

Fixed: When the compiler can't find a protocol in a class declaration