Fix SQL error from empty parent_id when moving root nodes

https://github.com/etrepat/baum/pull/10