Kotlin : Error handling: empty catch block