plugin/core.c: Add handling memory allocation failure for lft_change objects

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>