Elastic Net: Added Null values checks