Oil erases losses with dollar falling but uncertain demand looms