Fixed bug in n1kv-based resource creation.

Change-Id: I1167b4dbc666c3f7cc8a873ec8bff703059099b8