assemble-all-pages: fix a bug (stopped working when grep returned nothing)