#371 Update file protection condition

@mturalenka Please review 
(The last pull request was closed because of touched unnecessary string formatting by NetBeans)
variable `$protected_urls` was not initialized