check for exception when looking up slicing criterion See merge request program-slicing/e-knife-erlang!4