Defensive coding in bootstrap grid helper.