Fixed segfault when class constant is missing