FLUME-863: Use of unknown sink type leads to NullPointerException add condition for testing null returned from calling getSinkFactory() and rising exception in case that it's really null. (Jarek Jarcec Cecho via Prasad Mujumdar)