When crm_get_data() is called with invalid type, die with error, fix #127.