Don't try to set transformation if there is no reference PDB.
Fix unused object warnings.