TIMOB-14168: Fix constructor for BufferProxy

https://jira.appcelerator.org/browse/TIMOB-14168

Test case in Jira.