catch None and empty strings from params
Merge branch 'master' of github.com:kressi/neural_net