Update activity.php

Return the first value we got during the call of the instances.
(in order to keep the compatibility with the previous modification of the function, to use a trigger in order to get the number of points or medals)