fix a bug in ph-project-open with already opened files that weren't in a db