Fix: If the user doesn't upload the document and hit save, that caused an NullPtrException