Reject associations when class is not defined

In most cases associated classes will be loaded together, so it would be great if we can catch when wrong class name is used or class is missing.