When we have a category implementation without a corresponding interface
(which is an error by itself), semantic checks for property accesses
will attempt to access a null interface declaration and then segfault.
Error out in such cases instead.
I'm not sure if it's best to add the null check where I've added it or
if it should be fixed further up the stack.