When the replace reference refactoring is invoked, afftected files are opened with the phpactor-action-open-file function and offset argument equals 0.
(byte-to-position offset) returns nil in that case, and the whole operation halts on the subsequent error.