Make PcRaiseRank, PcLowerRank and PcJoinFaction properly accept references instead of using the actor that the player talked to last.

This also solves a potential crash when no actor has been talked to yet, e.g. immediately after loading a savegame.