Avoid null exception when a null is returned in nullable collection