Check for active project before getting it's name.

PolycodeFrame::handleEvent was trying to get the project name when the active project was NULL.