Update FileHandler.coffee

Restoring error check.