Fix bug with wait resource catching undefined error class