Check for zero occupancy in dynamic_smem_occupancy_limit

Fixes #35