[PDI-4326] Added check for tips array and unit test for tips dialog.

Added unit test for Tips dialog launching.
Added check for not trying to get Tip with number more than tips available for that locale.