add nil contacts handling to helper + regression specs