Fixed problem with .replaceItemValue with empty vectors

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>