Added Promise.sure helper and fixed promise error returnValue