Removed useless is_null() condition from if statment
Code cleaning for custom period selector in Dashboard