Check for bitmap layers before trying to find @bounds sublayer.

[layer layers] apparently breaks scripts for bitmap layers.