handled missing study type in database (to avoid NullpointerException)