Slight bug fix for dreamFactory.getDream. Includes debugging printouts to demonstrate server-side error for getGoal(parentId, parentType)