Even though the person in front of you boarded, they should have recieved the upgrade first. Whether or not you boar has nothin to do with your upgrade status. The Gate Agent 'should' go on board and upgrade the person OR let the FAs know so that they can move the highest Elite to the forward cabin.
SR