MAGMA-OPAL-2075 - throw exception if the type of a question is NULL