[BUGFIX] Type checking at PageRepository::getFileReferences() call