Capture variables could be different in subresource methods Fixes [WINK-344]. Thanks to Stefan Witte for reporting the issue.