D7 Views: Hide field if empty after being rewritten
Go to your view and Click on Keywords to configure the field.
Go to No results behavior and check Hide if empty

That's it. I've tested it and it's working fine. Let me know if you stuck anywhere.