Fix issue where API error details weren't displayed

Due to a small error on my part, exceptions raised in the API filter class had their associated messages erased. It turns out that the code which caused the issue was also completely redundant, so I removed it altogether.