null errors

Ensured that `err` is `null` or a levelup error (was getting `{}`)