Fix alias NPE in CubeRewriter & alias reconstruction in HQLParser

@Amareshwari pls review