fix bug where prim persistence would fail if media had never been set
fix bug where prim persistence would fail if media had never been set

TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim,TechplexEngineer/Aurora-Sim