genunifont: fix ftell() error checking