Log the full stacktrace when a ValidationException happens while saving a project

This will ease the debugging of some bugs in the future.