Speed up GetDefaultWidgetEntryPage function

This patch introduces three improvements in the function looking
for widget startup page. There were unnecessary tests when the
result was already found.