FIX: Add extra check for LFns in InputData optimizer. Closes #1472
Merge pull request #1477 from acasajus/fix-idata

FIX: Add extra check for LFns in InputData optimizer. Closes #1472