Adding helpful error message when pack.register is missing a callback

Closes #1751