Fixed crash on no ExpandHelper.setGravity method.