Bug Fix

- Fixing bug from recent addition in WebSharks/Private#148. Only processing custom templates when necessary; instead of on each restriction check.