allow to export model of Naive Bayes classifier

Checking for non-null estimators before acting upon it

Signed-off-by: Olivier Van Laere <vanlaere@yahoo-inc.com>