[agent] Fix bind_configuration error message

If there is an error when binding a template, return the correct
template line error.

Change-Id: I61a4360fe28eea78dc720e584c8877d7a96f4e79