Adding hook check with metabox count before enqueuing scripts since medi...

...a scripts are breaking on some admin pages