inject PhEDEx blocks when block is open

fixes #4920 partially