Ensure that NPE is not thrown if no availability ends.