CDAP-557 Refactor AbstractAppFabricHandler

https://builds.cask.co/browse/CDAP-DUT133-2
Do you mean `appId == null || appId.isEmpty()`?