NullPointerException in append() in case of pipelining or/and multi/exec calls

Fix for NullPointerException in append() in case of pipelining or/and multi/exec calls.