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

(cherry picked from commit 7e280c6892b7c424259c4ff950f10475aaf2e518)