appending nil will not crash (#812)