[BUGFIX] Catch InvalidPathException in BE & FE