null check in case views get updated before bundling script