Bugfix: Return NULL in push_leaf, when trie is full

os->full was set 1, but the overflowed idx_leaf was still used to index
into os->nodes a little later. Returning NULL fixes that.
Add testcase for #1600
Merge pull request #1601 from Merovius/bugfix_shorten

Bugfix: Return NULL in push_leaf, when trie is full