Hi Lucas,
I haven't got any problem with 'Align' & "De-ghost' applied on hand-held photos, are you sure to use the latest version (get it again from GITHUB).
You may get an error "if(app.activeDocument != null)" if you have a wrong number of files in source directory or your file mask is "*" and you have a text file in the source folder.