Validate append. Fixes crash on nil.