Invalidate cache when a cached function returns None
Invalidate cache when a cached function returns None

For some reason sometimes, functions instead of raising exception return None
as result. This result is cached which leads to inconsistend behaviour.
Because I cannot find the reason why None is returned, I invalidate
cache each time a function is returned and run the function again.

cgwire/zou