Fix issue with asVersion not setting properly

When looping through multiple `$directProps` values, `$result` will not be set correctly after the first pass.
Merge pull request #9 from ht2/master

Fix issue with asVersion in ContextActivities not checking for pre-existence of return result correctly