Only save history data to laws_meta if it exists

Closes #296.