R/calculate_intensity.R: prepareRegions should now work correctly when features argument is NULL

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>