Installation bug fix ensuring $blocks won't be NULL