Added a fix to allow ids of newly created assets to be returned

This commit is required for ES 1.2.0-M2