Fixes #22
Return NaN if columns are missing from the input

(cherry picked from commit 7e280c6892b7c424259c4ff950f10475aaf2e518)
(cherry picked from commit c9afa133ecee7a6c70095ef7543b6e6dc1fdb530)