fixed Type Erasures which lead to Unit return value instead of None

Due to type erasures a non existent document would not return None but Some(Unit). 
Furthermore the waitForGet function which wraps the Java GetFuture now returns an Option as usually expected from a Scala API instead of null.