Provide an error if a registered wagon factory fails to instantiate
Fixes gh-58, patch via @hugoduncan