Fix order of assignments

UNL_Mediahub was undefined at this point.