CC-3044: Error in system status seen in apache log
CC-3044: Error in system status seen in apache log

- Added check for length > 0 before trying to get property
- Got rid of repeating code

Lapotor/libretime,thnkloud9/Airtime,sourcefabric/airtime,justvanbloom/airtime,LibreTime/libretime,radiorabe/airtime,radiorabe/airtime,Lapotor/libretime,Lapotor/libretime,Lapotor/libretime,sourcefabric/airtime,comiconomenclaturist/libretime,ReganDryke/airtime,sourcefabric/Airtime,thnkloud9/Airtime,LibreTime/libretime,Ryex/airtime,sourcefabric/airtime,sourcefabric/Airtime,thnkloud9/Airtime,LibreTime/libretime,justvanbloom/airtime,justvanbloom/airtime,ReganDryke/airtime,Ryex/airtime,sourcefabric/airtime,Lapotor/libretime,ReganDryke/airtime,comiconomenclaturist/libretime,comiconomenclaturist/libretime,ReganDryke/airtime,radiorabe/airtime,justvanbloom/airtime,Ryex/airtime,justvanbloom/airtime,radiorabe/airtime,LibreTime/libretime,radiorabe/airtime,sourcefabric/airtime,radiorabe/airtime,Lapotor/libretime,sourcefabric/Airtime,ReganDryke/airtime,LibreTime/libretime,comiconomenclaturist/libretime,justvanbloom/airtime,comiconomenclaturist/libretime,thnkloud9/Airtime,justvanbloom/airtime,ReganDryke/airtime,thnkloud9/Airtime,Ryex/airtime,sourcefabric/Airtime,sourcefabric/airtime,sourcefabric/airtime,LibreTime/libretime,sourcefabric/Airtime,comiconomenclaturist/libretime,comiconomenclaturist/libretime,thnkloud9/Airtime,radiorabe/airtime,Ryex/airtime,sourcefabric/Airtime,Ryex/airtime,sourcefabric/Airtime,ReganDryke/airtime,Ryex/airtime,thnkloud9/Airtime