You are right. If the pass is clearly unintentional, no free hit should be given. It is up to the referee’s discretion whether a pass is unintentional or not.
The rulebook doesn’t state it clearly, but in my opinion, the free hit in this situation is at the the top of the goalie area. It is not an infraction to play the ball towards your own net and goalie. The goalie still has an option to play the ball with his/her feet or legs. The infraction occurs when the goalie touches the ball with his/her hand or arm, therefore the free hit at the top of the goalie area.