core: Use parameter instead fetching again from DB.

Use vmDynamic parameter which already fetched from the DB, instead
fetching the VM dynamic again from the DB.

Signed-off-by: Maor Lipchuk <mlipchuk@redhat.com>
Change-Id: I38eae06b8710136371c91f0d3b7739f58fc2792d