Fixing issue where `where()` clause exceptions were not propagated