Correcting error handling in assembly restocking
Merge pull request #253 from einhverfr/1.4

correcting error handling with old code side where db errors occur and cause internal server errors.