500 error handling. Bug with non-existing product fixed.