Use numDisplays instead of MAX_DISPLAYS in hwcomposer reset() function

Using MAX_DISPLAYS instead of numDisplays was causing compositor to crash. This pull request fixes this issue.