TypeScript : Error handling: empty catch block