IMPALA-820: Register Having-clause predicates with analyzer after expr substitution.

Change-Id: I638a7324b10007f7f55564b82def3fd05f2c9fa4
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1607
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins