If we get null back from the filter then return the default value

With the introduction of https://github.com/joomla/joomla-framework/commit/200f4c20d8992146fd568f0771aff1dce7ab29ae the filtered value could return null. To deal with that we should return the default value.