Error checking when reading powerpoint templates