Fixed a false transformation

skip parameters if it is unamed and its function decl
doesn't have definition.
fixed a crash

make another try upon an invalid loc