[GEOS-6645] NPE when trying to reload bands with empty range (Backport on 2.6.x)

This pull request contains the backport for JIRA: https://jira.codehaus.org/browse/GEOS-6645 on 2.6.x branch.