Fix bug in osGetPrimitiveParams() so that it works for prims with the same owner as the script and not ones with different owners.

Addresses http://opensimulator.org/mantis/view.php?id=6560