Merge pull request #2543 from vlakoff/develop-3

User_agent library: robuster detection in is_referral()
Fix too verbose error logging on default production environment

issue was present on PHP < 5.4