fix(client/js/image.js): prevent unchecked exception on preview failure

- Also made thumbnail-related error message more generic