Avoid NPEs when there are no migrations [registered]

Happens when Joplin tries to migrate things down on a blank
database/keyspace/etc.

Submitted as a pull request #44 upstream.