error checks upon tasks slab creation

Change-Id: Ic15e109bfbe69211b7a321c2ae3029599a30e722
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>