46: Changed JS test for undefined