Handle error when no pk is provied for external calendar
This refs #5556